package com.wanbangee.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wanbangee.dao.EmpDao;
import com.wanbangee.entities.Emp;
import com.wanbangee.service.EmpManagerService;

@Service
public class EmpManagerServiceImp implements EmpManagerService {

	@Autowired
	private EmpDao empDao;
	
	
	@Transactional
	@Override
	public List<Emp> selectEmpByEmpNameLike(String empName) {
		return this.empDao.selectEmpByEmpNameLike("%"+empName+"%");
	}

}
